﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DSPL.Contracts;
using DSPL.Contracts.Common;

namespace DSPL.Finac.View
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class AreaMasterView : UserControl
    {

        public AreaMasterView()
        {
            InitializeComponent();
            //this.MasterToolBar.ResolveDependancies(GlobalVariables.GlobalUnityContainer);
        }
       
        //private void MasterToolBar_PreDataSave(object sender, EventArgs e)
        //{
        //    var sqlTran = MasterToolBar.SqlTran;
        //    DSPL.Services.MasterWriteService objMasterWriteService = new DSPL.Services.MasterWriteService();
        //    if (objMasterWriteService.DeleteTest("INSERT INTO fMasterPK(TableName,NextPrimaryKey) VALUES ('fBankjkkk',1)", ref sqlTran))
        //    {
        //        MasterToolBar.IsValid = true;
        //        MasterToolBar.SqlTran = sqlTran;
        //    }
        //    else
        //        MasterToolBar.IsValid = false;
        //}

        //private void MasterToolBar_PostDataSave(object sender, EventArgs e)
        //{
        //    var sqlTran = MasterToolBar.SqlTran;
        //    DSPL.Services.MasterWriteService objMasterWriteService = new DSPL.Services.MasterWriteService();
        //    if (objMasterWriteService.DeleteTest("INSERT INTO fMasterPK(TableName,NextPrimaryKey) VALUES ('fBankthu',1)", ref sqlTran))
        //    {
        //        MasterToolBar.IsValid = true;
        //        MasterToolBar.SqlTran = sqlTran;
        //    }
        //    else
        //        MasterToolBar.IsValid = false;
        //}



    }
}
